package com.aimao.blog;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 启动类
 *
 * @author PuaChen
 * @date 2018-7-16
 */
@SpringBootApplication
@MapperScan("com.aimao.blog.dao")
@ServletComponentScan
public class BlogApplication {

    private static Logger logger = LoggerFactory.getLogger(BlogApplication.class);

    public static void main(String[] args) {
        logger.info("服务启动中....");
        SpringApplication.run(BlogApplication.class, args);
        logger.info("服务启动完成....");
    }
}
